package dao;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import vo.BadgeVO;
import vo.MemberVO;

@Repository
public class BadgeDaoImpl implements BadgeDao{
	@Resource(name = "sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;
	
	/*@Override
	public BadgeVO badgedatailRow(BadgeVO bvo) {
		BadgeVO result = null;
		result=sqlSessionTemplate.selectOne("badgedetail",bvo);
		return result;
	}*/

	@Override
	public List<BadgeVO> allbadgeRow(MemberVO mvo) {
		List<BadgeVO> list = sqlSessionTemplate.selectList("myBadge", mvo);
		return list;
	}
}
